/* 去除 dreamVideo.name 中的电影名
* */
const low = require('lowdb')
const FileSync = require('lowdb/adapters/FileSync')

const dataBaseDir = 'E:/code/electron/dream/src/data/'

const db = low(new FileSync(`${dataBaseDir}/access_records.json`))

const data = db.read().value()

Object.values(data).forEach(v1 => {
    Object.values(v1).forEach(v2 => {
        // delete v2['accessTimes']
        console.log(v2)
    })
})

// db.write()
